package com.zhl.study.service.chainResponsibility.strategy;

import com.zhl.study.anno.Duty;
import com.zhl.study.cons.ProduckTypeConst;
import com.zhl.study.service.chainResponsibility.IHandler;
import com.zhl.study.vo.Product;
import com.zhl.study.vo.Student;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @description TODO
 * @Author: z156940l@outlook.com
 * @className DHandler
 * @Date: 2024/12/26 22:03
 */
@Component
//@Order(3)
@Duty(type= ProduckTypeConst.PRODUCT_GENERAL,order = 30)
public class DHandler extends IHandler<Product, Boolean> {

    @Override
    public Boolean handler(Product student) {
        System.out.println("DHandler");
        return super.handler(student);
    }
}
